<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    var d = new Date();
    console.log(d);
    console.log(typeof d);

    console.log( d.getFullYear() );
    console.log( d.getMonth() );        // 0~11
    console.log( d.getDate() );

    console.log( d.getDay() );          // 0~6
    
    console.log( d.getHours() );
    console.log( d.getMinutes() );
    console.log( d.getSeconds() );
    
    console.log( d.getMilliseconds() );

    // xxxx年xx月xx日 星期x xx:xx:xx




    
</script>
</html>